package com.javachamp.exceptions;

public class TryWithSystemExit {

	public static void main(String[] args) {
		System.out.print("1");
		try {
			System.exit(0);
		} catch (Exception e) {
			System.out.print("2");
		} finally {
			// System.exit(0) will stop the execution;
			// thus finally block doesn' t run
			System.out.print("3");
		}
		System.out.print("4");
	}
	
}
                                                    